/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package de.blitzcoder.collide.engine.parser;

/**
 *
 * @author blitzcoder
 */
public class CodeInclude extends CodeObject {

    private String path;
    
    public CodeInclude(String path,int line) {
        super("[INCLUDE]",line);
        this.path = path;
    }
    
    public String getPath() {
        return path;
    }

    @Override
    public String getObjectType() {
        return "Include";
    }

    public boolean equals(Object o) {
        if (o instanceof CodeInclude) {
            CodeInclude i = (CodeInclude) o;
            return path.equals(i.getPath());
        }
        return false;
    }
    
}
